home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 20
/
Cream of the Crop 20 (Terry Blount) (1996).iso
/
math
/
symbol63.zip
/
TORUS.IN
< prev
Wrap
Text File
|
1996-05-17
|
435b
|
13 lines
; The following is the equation for a torus (donut) in 3D Cartesian space.
; "c" is the distance from the center of the hole
; to the center of the tube (major radius).
; "a" is the radius of the tube (minor radius).
(c-(x^2+y^2)^.5)^2+z^2 = a^2
y
;
; The following is the formula to compute the surface area of the torus:
a1 = 2pi*(c+a)*(c-a) ; "a1" is the area.
;
; "v" = Volume of the torus:
v = 1/4*pi^2*(a+c)*(c-a)^2